home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / Apache / include / php / Zend / zend_variables.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-02  |  2.5 KB  |  62 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | Zend Engine                                                          |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1998-2000 Zend Technologies Ltd. (http://www.zend.com) |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 0.92 of the Zend license,     |
  8.    | that is bundled with this package in the file LICENSE, and is        | 
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.zend.com/license/0_92.txt.                                |
  11.    | If you did not receive a copy of the Zend license and are unable to  |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@zend.com so we can mail you a copy immediately.              |
  14.    +----------------------------------------------------------------------+
  15.    | Authors: Andi Gutmans <andi@zend.com>                                |
  16.    |          Zeev Suraski <zeev@zend.com>                                |
  17.    +----------------------------------------------------------------------+
  18. */
  19.  
  20.  
  21. #ifndef ZEND_VARIABLES_H
  22. #define ZEND_VARIABLES_H
  23.  
  24.  
  25. ZEND_API int zend_print_variable(zval *var);
  26.  
  27. BEGIN_EXTERN_C()
  28. ZEND_API int _zval_copy_ctor(zval *zvalue ZEND_FILE_LINE_DC);
  29. ZEND_API void _zval_dtor(zval *zvalue ZEND_FILE_LINE_DC);
  30. ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC);
  31. #define zval_copy_ctor(zvalue) _zval_copy_ctor((zvalue) ZEND_FILE_LINE_CC)
  32. #define zval_dtor(zvalue) _zval_dtor((zvalue) ZEND_FILE_LINE_CC)
  33. #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
  34.  
  35. #if ZEND_DEBUG
  36. ZEND_API int _zval_copy_ctor_wrapper(zval *zvalue);
  37. ZEND_API void _zval_dtor_wrapper(zval *zvalue);
  38. ZEND_API void _zval_ptr_dtor_wrapper(zval **zval_ptr);
  39. #define zval_copy_ctor_wrapper _zval_copy_ctor_wrapper
  40. #define zval_dtor_wrapper _zval_dtor_wrapper
  41. #define zval_ptr_dtor_wrapper _zval_ptr_dtor_wrapper
  42. #else
  43. #define zval_copy_ctor_wrapper _zval_copy_ctor
  44. #define zval_dtor_wrapper _zval_dtor
  45. #define zval_ptr_dtor_wrapper _zval_ptr_dtor
  46. #endif
  47.  
  48. END_EXTERN_C()
  49.  
  50.  
  51. ZEND_API void zval_add_ref(zval **p);
  52. ZEND_API void zval_del_ref(zval **p);
  53.  
  54. #define ZVAL_DESTRUCTOR (void (*)(void *)) zval_dtor_wrapper
  55. #define ZVAL_PTR_DTOR (void (*)(void *)) zval_ptr_dtor_wrapper
  56. #define ZVAL_COPY_CTOR (void (*)(void *)) zval_copy_ctor_wrapper
  57.  
  58. ZEND_API void var_reset(zval *var);
  59. ZEND_API void var_uninit(zval *var);
  60.  
  61. #endif
  62.